<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex align-stretch benben-position-layout flex businessLicense_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex align-center justify-between flex-sub businessLicense_fd0_0'>
					<view class='flex align-center businessLicense_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  businessLicense_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex align-center'>
						<text class='businessLicense_fd0_0_c1_c0'>营业执照</text>
					</view>
					<view class='flex align-center businessLicense_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-wrap align-center justify-center benben-flex-layout businessLicense_flex_1">
				<image class='businessLicense_fd1_0' mode="aspectFill" :src='businessLicense.business_licence'></image>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"businessLicense": {
					"aid": "",
					"store_name": "",
					"store_logo": "",
					"store_address": "",
					"business_licence": "",
					"contacts_name": "",
					"contacts_phone": "",
					"store_backdrop": [],
					"service_phone": "",
					"business_hours": "",
					"store_introduce": "",
					"store_star": "",
					"store_collection_num": "",
					"certification_status": "",
					"store_status": "",
					"is_collection": "",
					"mobile": "",
					"expiration_time": "",
					"location": "",
					"store_backdrop_many": [],
					"end_time": "",
					"score": "",
					"examine": "",
					"readon": "",
					"account_wx": "",
					"account_alipay": "",
					"account_bank": "",
					"withdraw_handling_fee": "",
					"user_money": ""
				},
				"id": ""
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			userInfo: {
				get() {
					return this.$store.state.userInfo
				},
				set() {
					this.$store.commit('updateUserInfo', value)
				},
			}
		},
		watch: {},
		onLoad(options) {
			let {
				id
			} = options
			if (id !== undefined) this.id = id
			this.getBusinessLicenseFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取营业执照信息
			async getBusinessLicenseFunc() {
				//请求方法
				//数据验证

				let databusinessLicense = await this.$api.get(global.apiUrls.post641b0ae793987, {
					partner_id: this.id,
					user_id: this.userInfo.id
				});

				if (databusinessLicense.data.code != 1) {
					this.$message.info(databusinessLicense.data.msg);
					return
				}
				let infobusinessLicense = databusinessLicense.data;
				this.businessLicense = infobusinessLicense.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.businessLicense_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.businessLicense_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
	}

	.businessLicense_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
	}

	.businessLicense_fd0_0_c0 {
		width: 180rpx;
	}

	.businessLicense_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.businessLicense_flex_1 {
		padding: 130rpx 0rpx 0rpx 0rpx;
	}

	.businessLicense_fd1_0 {
		width: 520rpx;
		height: 698rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}
</style>